import FormCardViewComponent from './FormCardViewComponent';

const widgetKey = "Card";

const config = {
  cfg: {
    addEnable: true,
    isContainer: true,
    isColumn: true,
    componentName: 'Card',
    category: 'layout',
    name: '卡片',
    description: '',
    icon: 'logo_table',
    props: {
      title: '卡片',
    },
    setters: [
      {
        propName: "title",
        setterName: "Input",
        props: {
          label: "标题",
          subLabel: "最多20字",
          maxLength: 20,
          validateMessage: {
            required: "标题不能为空",
          },
        },
      },
    ],
  },
  extend: FormCardViewComponent,
};

const setting = {
  widget: {
    [widgetKey]: config,
  },
};

export default setting;
